package com.company.utils;

import com.company.service.BaseService;
import com.company.service.impl.*;

public class ServicrFatory {
    public static BaseService getService(String key) {
        if ("start".equals(key)) {
            return new StartServiceImpl();
        } else if ("jijian".equals(key)) {
            return new jiJianImpl();
        } else if ("chaxun".equals(key)) {
            return new CahXunmpl();
        } else if ("xiugai".equals(key)) {
            return new XiuGaimpl();
        } else if ("quxiao".equals(key)) {
            return new XiuGaimpl();
        } else if ("lianxiren".equals(key)) {
            return new ChaXunLianXiRenmpl();
        }
        return null;
    }
}
